package cn.zymall.goods.mapper;

import cn.zymall.common.model.ServiceEnsure;
import cn.zymall.common.model.SpuServiceCenter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import javax.xml.ws.Service;
import java.util.List;

/**
 * @author lxh
 * @Description 商品服务保证持久层
 * @date 2020/8/20 10:08
 * @Classname ServiceEnsureMapper
 **/
@Mapper
public interface ServiceEnsureMapper extends BaseMapper<ServiceEnsure> {

	/**
	 * 查询所有服务
	 * @return
	 */
	public List<ServiceEnsure> findAll();


	/**
	 * 添加商品与服务保证的中间表数据
	 * @param spuServiceCenter
	 */
	public void addServiceCenter(SpuServiceCenter spuServiceCenter);


	/**
	 * 根据id删除商品服务中间表数据
	 * @param id
	 */
	public void del(Integer id);


}
